home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 3
/
DOS064.dsk
/
CHECK BOOK BALANCER.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
3KB
|
73 lines
20 REM CHECKBOOK BALANCING PROGRAM
30 REM *** DATA INITIALIZATION ***
40 M1 = 20
50 M2 = 100
60 DIM D(20),C1$(100),C(100),C$(100)
70 TEXT : HOME : VTAB 5
80 DD$ = "<CTRL-D>"
90 PRINT : INPUT "ENTER DATE OF THE STATEMENT ";DA$
100 PRINT : INPUT "WILL YOU WANT RESULTS PRINTED (Y/N)? ";PRT$
110 PRINT : INPUT "ENTER BALANCE FROM BANK STAT. $";B
130 PRINT : PRINT "ENTER DEPOSITS NOT CREDITED ON STATEMENT(RETURN WHEN DONE)"
140 FOR I = 1 TO M1
150 D(I) = 0
160 INPUT "AMOUNT $ ";D$
170 IF LEN(D$) = 0 THEN 200
175 D(I) = VAL(D$)
180 DO = DO +D(I)
190 NEXT I
200 PRINT "ENTER CHECKS OUTSTANDING - CK NBR & AMT PRESS RETURN WHEN DONE."
220 M1 = I -1
230 FOR I = 1 TO M2
240 C1$(I) = " "
250 C(I) = 0
260 INPUT "CK NBR. ";C1$(I): IF LEN(C1$(I)) = 0 THEN 300
265 INPUT "CK AMOUNT $";C$(I): IF LEN(C$(I)) = 0 THEN 300
270 C(I) = VAL(C$(I))
280 CO = CO +C(I)
290 NEXT I
300 PRINT "SUBTRACT SERVICE AND OTHER CHARGES FROM YOUR CHECKBOOK.": PRINT "DON'T FORGET OTHER ADDS AND SUBTRACTS "
320 PRINT "SUCH AS AUTOMATIC WITHDRAWALS, CHECK CHARGES, ETC."
330 M2 = I -1
340 PRINT
350 INPUT "ENTER BALANCE SHOWN IN CHECKBOOK $";B1
370 REM *** PRINT OF RESULTS ***
380 PRINT
385 IF PRT$ = "Y" THEN PRINT DD$;"PR#1": GOTO 395
390 PRINT "PRESS ANY KEY FOR BALANCE";: GET A$
393 HOME
395 PRINT
420 PRINT TAB( 18);DA$
430 PRINT
440 PRINT "BALANCE FROM STATEMENT"; TAB( 30);"$";B
450 PRINT
460 PRINT "RECENT DEPOSITS NOT SHOWN"
470 FOR I = 1 TO M1
480 PRINT TAB( 30);"$";D(I)
490 NEXT I
500 PRINT TAB( 25);"-------------"
510 PRINT " SUBTOTAL DEPOSITS"; TAB( 30);"$";DO
520 PRINT
530 PRINT TAB( 25);"============="
540 PRINT "TOTAL"; TAB( 30);"$";DO +B
545 IF PRT$ < >"Y" THEN PRINT : PRINT "PRESS ANY KEY FOR OUTSANDING CHECKS";: GET Z$: HOME : PRINT : PRINT
550 PRINT
560 PRINT "CHECKS OUTSTANDING"
570 PRINT TAB( 18);"CHK"; TAB( 30);"AMOUNT"
580 FOR I = 1 TO M2
590 PRINT TAB( 18);C1$(I); TAB( 30);"$";C(I)
600 NEXT I
610 PRINT TAB( 25);"------------"
620 PRINT " SUBTOTAL CHECKS OUT"; TAB( 30);"$";CO
630 PRINT
640 PRINT "======================================="
650 PRINT "BALANCE EXPECTED IN CHECKBOOK"; TAB( 30);"$"; INT((DO +B -CO +.005) *100)/100
660 PRINT "BALANCE IN CHECKBOOK"; TAB( 30);"$";B1
670 PRINT "***************************************"
680 PRINT " DIFFERENCE "; TAB( 30);"$";( INT(DO +B -CO -B1 +.005) *100)/100
681 PRINT "***************************************"
682 IF PRT$ = "Y" THEN PRINT " "
685 IF PRT$ = "Y" THEN PRINT DD$;"PR#0"
695 IF PRT$ < >"Y" THEN PRINT "NOW DO YOU WANT PRINTED RESULTS (Y/N)?": GET Z$
696 PRINT : IF PRT$ < >"Y" AND Z$ = "Y" THEN PRT$ = "Y": HOME : GOTO 380
700 END